<?php
// +----------------------------------------------------------------------
// | flow-notify / sms.php    [ 2021/11/9 11:24 上午 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2011~2021 zhangqiquan All rights reserved.
// +----------------------------------------------------------------------
// | Author: zhangqiquan <768617998@qq.com>
// +----------------------------------------------------------------------
use notify\Notify;
spl_autoload_register(function ($class) {
    $class = dirname(__DIR__, 1) .'/'. str_replace('\\', '/', $class) . '.php';
    $class = str_replace('/notify/', '/src/', $class);
    if (file_exists($class)) {
        require_once ($class);
    }else{
        //print_r(debug_backtrace());
        echo $class.'文件不存在'.PHP_EOL;die;
    }

});

$sms = Notify::sms('chuanglan', ['account' => 'aaa', 'password' => 'bbb']);
$data = $sms->getBalance();
print_r($data);

$data = $sms->send('17002171797', '【FLOW】尊敬的用户，您本次的验证码为123有效期5分钟。');
print_r($data);

